package com.cpi.cornpp.product.view;

import com.cpi.cornpp.common.view.IBaseView;

public class ProductView implements IBaseView{

	/** Serial id */
	private static final long serialVersionUID = -5747703307950762839L;

	private String productId;
	
	private String description;
	
	private String ton;
			

	public String getTon() {
		return ton;
	}

	public void setTon(String ton) {
		this.ton = ton;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getProductId() {
		return productId;
	}

	public void setProductId(String itemId) {
		this.productId = itemId;
	}

	public String getShortDescription() {
		String shortDescription = null;
		if( description != null){
			shortDescription = description.length() > 25 ? description.substring( 0, 25 ) + "..." : description;
		}
		return shortDescription;
	}
}
